package com.lyx.question.vo;

import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * 新建一级分类的时候
 * @author 14667
 * @date 2022/7/21 9:34
 */
@Data
public class OneSubjectVo {
    @NotNull(message = "展示字段不能为空")
    @Max(value = 1,message = "展示字段只能为0、1")
    @Min(value = 0,message = "展示字段只能为0、1")
    private Integer showStatus;
    @NotNull(message = "章节字段不能为空")
    @Size(max = 20,message = "章节字段最大为20字符")
    private String chapterName;

}
